package com.googlecode.animator.controller
{
	
	import com.googlecode.data.stage.StagePropertiesVO;
	
	import org.puremvc.as3.multicore.interfaces.INotification;
		
	/**
	 * Responds to user opening a project. 
	 * @author USER
	 * 
	 */
	public class SetStageSizeCommand extends BaseCommand
	{
		/**
		 * Executes command. 
		 * @param notification
		 * 
		 */
		override public function execute(notification:INotification):void
		{
			super.execute(notification);
			
			settings.stageWidth = (notification.getBody() as StagePropertiesVO).stageWidth;
			settings.stageHeight = (notification.getBody() as StagePropertiesVO).stageHeight;
		}
		
	}
}